import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import path from 'path'

const resolve = (...url: string[]) => {
  return path.resolve(__dirname, ...url)
}

export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '~': resolve(),
      '@': resolve('src'),
      style: resolve('src', 'style'),
    },
  },
})
